package com.ruiysoft.service.sys.redis;

import com.ruiysoft.entity.sys.SysShopPayPlatform;
import com.ruiysoft.entity.sys.SysShopPersonnel;
import com.ruiysoft.entity.sys.SysUser;
import com.ruiysoft.entity.sys.SysUserShopRelation;

/**
 * Created by 化增光 on 2018/10/22.
 */
public interface IRedisSysUserService {
    
    void setCurrentLoginShop(int loginType, Long userId, Long personnelId, Long shopId);

    Long getCurrentLoginOnShopId(int loginType, Long userId, Long personnelId);

    SysUser selectSysUserByUserName(String username);

    SysShopPersonnel selectSysShopPersonnelById(Long personnelId);

    SysShopPersonnel selectSysShopPersonnelByAppIdAndOpenId(String appId, String openid);

    SysUser selectSysUserByPersonnelId(Long personnelId);

    SysUser selectSysUserById(Long userId);

    void clearSysShopPersonnelById(Long id);

    SysShopPayPlatform selectSysShopPayPlatformByAppId(String appId);

    void clearCacheByUserName(String userName);

    void clearCacheById(Long aLong, Long personnelId);

    SysUserShopRelation selectUserShopRelationByUserId(Long id);

//    void setUserLoginShop(Long id, @Valid Long shopId);
//
//    Long getUserLoginShop(Long userId);
}
